package com.yongjie.springbootlogin.service;

import com.yongjie.springbootlogin.entity.Adminmuser;
import com.yongjie.springbootlogin.mapper.AdminMapper;
import com.yongjie.springbootlogin.service.Interface.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yongjie
 * @version 1.0
 * @date 2019/12/15 0:50
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;
    @Override
    public int addAndmin(Adminmuser adminmuser) {
        return adminMapper.addAndmin(adminmuser);
    }

    @Override
    public Integer AdminCount() {
        return adminMapper.AdminCount();
    }

    @Override
    public List<Adminmuser> getAndminPages(int currentPage, int pageSize) {
        return adminMapper.getAndminPages(currentPage,pageSize);
    }
}
